package util;

public class DA extends Parsable<DA> {

	public int a;
	public int d;
	
	public DA(int x, int y) {
		d =x;
		a =y;
	}

	@Override
	public DA parse(String str) {
		d = Integer.parseInt( str.substring(1, 2) );
		a = Integer.parseInt( str.substring(str.indexOf(",")+1, str.indexOf(",")+2)  );
		return new DA(d,a);
	}

	@Override
	public String toString() {
		return "("+d+","+a+")";
	}

}
